<!DOCTYPE html>
<html>
<head>
    <title></title>
    #parse("sys/header.html")
</head>
<body>
<div id="rrapp" v-cloak>
	<div v-show="showList">
        <Row :gutter="16">
            <div class="search-group">
                <i-col span="4">
                    <i-input v-model="q.name" @on-enter="query" placeholder="名称"/>
                </i-col>
                <i-button @click="query">查询</i-button>
                <i-button @click="reloadSearch">重置</i-button>
                <i-col span="4">
                    <i-input v-model="q.mining" @on-enter="query" placeholder="今日运动挖矿数" readonly/>
                </i-col>
            </div>
            <div class="buttons-group">
                #if($shiro.hasPermission("accountsnapshot:mining"))
                <i-button type="success" @click="getMining"><i class="fa fa-legal"></i>&nbsp;当日运动挖矿总量</i-button>
                #end
                #if($shiro.hasPermission("accountsnapshot:info"))
                <i-button type="warning" @click="update"><i class="fa fa-pencil-square-o"></i>&nbsp;查看</i-button>
                #end
                #if($shiro.hasPermission("accountsnapshot:save"))
                <i-button type="info" @click="add"><i class="fa fa-plus"></i>&nbsp;新增</i-button>
                #end
                #if($shiro.hasPermission("accountsnapshot:update"))
                <i-button type="warning" @click="update"><i class="fa fa-pencil-square-o"></i>&nbsp;修改</i-button>
                #end
                #if($shiro.hasPermission("accountsnapshot:delete"))
                <i-button type="error" @click="del"><i class="fa fa-trash-o"></i>&nbsp;删除</i-button>
                #end
            </div>
        </Row>
	    <table id="jqGrid"></table>
	    <div id="jqGridPager"></div>
    </div>

    <Card v-show="!showList">
        <p slot="title">{{title}}</p>
		<i-form ref="formValidate" :model="accountSnapshot" :rules="ruleValidate" :label-width="80">
            <Form-item label="总量" prop="total">
                <i-input v-model="accountSnapshot.total" placeholder="总量"/>
            </Form-item>
            <Form-item label="总量记录" prop="totalDetail">
                <i-input v-model="accountSnapshot.totalDetail" placeholder="总量记录"/>
            </Form-item>
            <Form-item label="普通邀请注册" prop="regTotal">
                <i-input v-model="accountSnapshot.regTotal" placeholder="普通邀请注册"/>
            </Form-item>
            <Form-item label="运动" prop="exTotal">
                <i-input v-model="accountSnapshot.exTotal" placeholder="运动"/>
            </Form-item>
            <Form-item label="闪兑" prop="extractTotal">
                <i-input v-model="accountSnapshot.extractTotal" placeholder="闪兑"/>
            </Form-item>
            <Form-item label="Done邀请注册" prop="doneRegTotal">
                <i-input v-model="accountSnapshot.doneRegTotal" placeholder="Done邀请注册"/>
            </Form-item>
            <Form-item label="购买商品" prop="buyTotal">
                <i-input v-model="accountSnapshot.buyTotal" placeholder="购买"/>
            </Form-item>
            <Form-item label="任务奖励" prop="taskTotal">
                <i-input v-model="accountSnapshot.taskTotal" placeholder="任务奖励"/>
            </Form-item>
            <Form-item label="新用户注册" prop="userReg">
                <i-input v-model="accountSnapshot.userReg" placeholder="新用户注册"/>
            </Form-item>
            <Form-item label="日期" prop="snapDate">
                <i-input v-model="accountSnapshot.snapDate" placeholder="日期"/>
            </Form-item>
            <Form-item>
                <i-button type="primary" @click="handleSubmit('formValidate')">提交</i-button>
                <i-button type="warning" @click="reload" style="margin-left: 8px"/>返回</i-button>
                <i-button type="ghost" @click="handleReset('formValidate')" style="margin-left: 8px">重置</i-button>
            </Form-item>
        </i-form>
	</Card>
</div>

<script src="${rc.contextPath}/js/statistics/accountsnapshot.js?_${date.systemTime}"></script>
</body>
</html>